home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Mail / pine3.92 / pico / makefile.d-g < prev    next >
Makefile  |  1996-03-14  |  2KB  |  96 lines

  1. # $Id: makefile.d-g,v 1.3 1996/03/15 07:41:11 hubert Exp $
  2. #
  3. #   Michael Seibel
  4. #   Networks and Distributed Computing
  5. #   Computing and Communications
  6. #   University of Washington
  7. #   Administration Builiding, AG-44
  8. #   Seattle, Washington, 98195, USA
  9. #   Internet: mikes@cac.washington.edu
  10. #
  11. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  12. #
  13. #
  14. #   Pine and Pico are registered trademarks of the University of Washington.
  15. #   No commercial use of these trademarks may be made without prior written
  16. #   permission of the University of Washington.
  17. #
  18. #   Pine, Pico, and Pilot software and its included text are Copyright
  19. #   1989-1996 by the University of Washington.
  20. #
  21. #   The full text of our legal notices is contained in the file called
  22. #   CPYRIGHT, included with this distribution.
  23. #
  24.  
  25. #
  26. # Makefile for DG/UX version of the PINE composer library and 
  27. # stand-alone editor pico.
  28. #
  29. # [Port courtesy of Jeff Ferguson <jef@zeus.agfx.com>]
  30. #
  31.  
  32. #for GNU C
  33. #CC=         gcc
  34.  
  35. #includes symbol info for debugging 
  36. #DASHO=        -g
  37. #for normal build
  38. DASHO=        -O
  39.  
  40. #for GNU C
  41. #STDCFLAGS=    -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE
  42. #otherwise
  43. STDCFLAGS=    -Dsv4 -DPOSIX -DJOB_CONTROL -DMOUSE
  44. CFLAGS=        $(EXTRACFLAGS) $(DASHO) $(STDCFLAGS)
  45.  
  46.  
  47. # switches for library building
  48. LIBCMD=        ar
  49. LIBARGS=    ru
  50. RANLIB=        true
  51.  
  52. LIB=            $(EXTRALIBES) -lnsl_s -lgen -lcurses # -ltermcap
  53.  
  54. OFILES=        attach.o ansi.o basic.o bind.o browse.o buffer.o \
  55.         composer.o display.o file.o fileio.o line.o osdep.o \
  56.         pico.o random.o region.o search.o spell.o tinfo.o \
  57.         window.o word.o
  58.  
  59. CFILES=        attach.c ansi.c basic.c bind.c browse.c buffer.c \
  60.         composer.c display.c file.c fileio.c line.c osdep.c \
  61.         pico.c random.c region.c search.c spell.c tinfo.c \
  62.         window.c word.c
  63.  
  64. HFILES=        estruct.h edef.h efunc.h ebind.h pico.h
  65.  
  66.  
  67. #
  68. # dependencies for the Unix versions of pico and libpico.a
  69. #
  70. all:        pico pilot
  71.  
  72. osdep.c:    os_unix.c
  73.         rm -f osdep.c
  74.         cp os_unix.c osdep.c
  75.  
  76. osdep.h:    os_unix.h
  77.         rm -f osdep.h
  78.         cp os_unix.h osdep.h
  79.  
  80. libpico.a:    $& osdep.c osdep.h $(OFILES)
  81.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  82.         $(RANLIB) libpico.a
  83.  
  84. pico:        main.c libpico.a
  85.         $(CC) $(CFLAGS) main.c libpico.a $(LIB) -o pico
  86.  
  87. pilot:        pilot.c libpico.a
  88.         $(CC) $(CFLAGS) pilot.c libpico.a $(LIB) -o pilot
  89.  
  90. .c.o:        ; $(CC) -c $(CFLAGS) $*.c
  91.  
  92. $(OFILES):    $(HFILES)
  93.  
  94. clean:
  95.         rm -f *.a *.o *~ osdep.c osdep.h
  96.